/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.fx.employee.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 员工级别调整Entity
 * @author jyangye
 * @version 2017-11-17
 */
public class FxEmployeeleveladjust extends DataEntity<FxEmployeeleveladjust> {
	
	private static final long serialVersionUID = 1L;
	private String leveladjustid;		// leveladjustid
	private String employeeid;		// employeeid
	private Date adjustdate;		// adjustdate
	private String beforeemployeelevelid;		// beforeemployeelevelid
	private String afteremployeelevelid;		// afteremployeelevelid
	private Date makevaliddate;		// makevaliddate
	private String adjustreason;		// adjustreason
	private Date beginAdjustdate;		// 开始 adjustdate
	private Date endAdjustdate;		// 结束 adjustdate
	
	public FxEmployeeleveladjust() {
		super();
	}

	public FxEmployeeleveladjust(String id){
		super(id);
	}

	@Length(min=1, max=32, message="leveladjustid长度必须介于 1 和 32 之间")
	public String getLeveladjustid() {
		return leveladjustid;
	}

	public void setLeveladjustid(String leveladjustid) {
		this.leveladjustid = leveladjustid;
	}
	
	@Length(min=1, max=32, message="employeeid长度必须介于 1 和 32 之间")
	public String getEmployeeid() {
		return employeeid;
	}

	public void setEmployeeid(String employeeid) {
		this.employeeid = employeeid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="adjustdate不能为空")
	public Date getAdjustdate() {
		return adjustdate;
	}

	public void setAdjustdate(Date adjustdate) {
		this.adjustdate = adjustdate;
	}
	
	@Length(min=1, max=32, message="beforeemployeelevelid长度必须介于 1 和 32 之间")
	public String getBeforeemployeelevelid() {
		return beforeemployeelevelid;
	}

	public void setBeforeemployeelevelid(String beforeemployeelevelid) {
		this.beforeemployeelevelid = beforeemployeelevelid;
	}
	
	@Length(min=1, max=32, message="afteremployeelevelid长度必须介于 1 和 32 之间")
	public String getAfteremployeelevelid() {
		return afteremployeelevelid;
	}

	public void setAfteremployeelevelid(String afteremployeelevelid) {
		this.afteremployeelevelid = afteremployeelevelid;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="makevaliddate不能为空")
	public Date getMakevaliddate() {
		return makevaliddate;
	}

	public void setMakevaliddate(Date makevaliddate) {
		this.makevaliddate = makevaliddate;
	}
	
	@Length(min=0, max=1000, message="adjustreason长度必须介于 0 和 1000 之间")
	public String getAdjustreason() {
		return adjustreason;
	}

	public void setAdjustreason(String adjustreason) {
		this.adjustreason = adjustreason;
	}
	
	public Date getBeginAdjustdate() {
		return beginAdjustdate;
	}

	public void setBeginAdjustdate(Date beginAdjustdate) {
		this.beginAdjustdate = beginAdjustdate;
	}
	
	public Date getEndAdjustdate() {
		return endAdjustdate;
	}

	public void setEndAdjustdate(Date endAdjustdate) {
		this.endAdjustdate = endAdjustdate;
	}
		
}